// 安装 prop-types   验证类型
import React from 'react'
// import PropTypes from 'prop-types'
function Test({ message=12 }) {
  return <div>{message}</div>
}

Test.defaultProps = {
    // message: 10, 
}
class App extends React.Component {
  render() {
    return (
      <div>
        {/* <Test message={'hello'}></Test> */}
        <Test></Test>
      </div>
    )
  }
}

export default App
